/ BBS in a Box 12
/ BBS in a box XII-1.iso / Files / Tele / C / Comet2.1.3.sit / include / timer.h ![]() | < prev | next > |
MacBinary | 1990-01-31 | 1.8 KB | [TEXT/????] |
Confidence | Program | Detection | Match Type | Support |
---|---|---|---|---|
10% | dexvert | MacBinary (archive/macBinary) | fallback | Supported |
1% | dexvert | Text File (text/txt) | fallback | Supported |
100% | file | MacBinary II, Wed Jan 31 16:24:45 1990, modified Wed Jan 31 16:24:45 1990, creator '????', type ASCII, 1267 bytes "timer.h" , at 0x573 382 bytes resource | default (weak) | |
99% | file | data | default | |
74% | TrID | Macintosh plain text (MacBinary) | default | |
25% | TrID | MacBinary 2 | default (weak) | |
100% | siegfried | fmt/1762 MacBinary (II) | default | |
100% | lsar | MacBinary | default |
id metadata | |
---|---|
key | value |
macFileType | [TEXT] |
macFileCreator | [????] |
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 07 74 69 6d 65 72 2e | 68 00 00 00 00 00 00 00 |..timer.|h.......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 3f 3f 3f | 3f 00 00 00 00 00 00 00 |.TEXT???|?.......|
|00000050| 00 00 00 00 00 04 f3 00 | 00 01 7e a1 ed 08 1d a1 |........|..~.....|
|00000060| ed 08 1d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 82 ea 00 00 |........|........|
|00000080| 2f 2a 20 20 43 6f 70 79 | 72 69 67 68 74 20 31 39 |/* Copy|right 19|
|00000090| 38 33 20 62 79 20 74 68 | 65 20 4d 61 73 73 61 63 |83 by th|e Massac|
|000000a0| 68 75 73 65 74 74 73 20 | 49 6e 73 74 69 74 75 74 |husetts |Institut|
|000000b0| 65 20 6f 66 20 54 65 63 | 68 6e 6f 6c 6f 67 79 20 |e of Tec|hnology |
|000000c0| 20 2a 2f 0d 0d 2f 2a 0d | 09 43 6f 70 79 72 69 67 | */../*.|.Copyrig|
|000000d0| 68 74 20 43 6f 72 6e 65 | 6c 6c 20 55 6e 69 76 65 |ht Corne|ll Unive|
|000000e0| 72 73 69 74 79 20 31 39 | 38 36 2e 20 20 41 6c 6c |rsity 19|86. All|
|000000f0| 20 72 69 67 68 74 73 20 | 61 72 65 20 72 65 73 65 | rights |are rese|
|00000100| 72 76 65 64 2e 0d 0d 09 | 41 73 20 6f 66 20 34 2f |rved....|As of 4/|
|00000110| 31 30 2f 38 36 3a 0d 09 | 54 68 69 73 20 73 6f 75 |10/86:..|This sou|
|00000120| 72 63 65 20 66 69 6c 65 | 20 6d 61 79 20 68 61 76 |rce file| may hav|
|00000130| 65 20 6e 6f 20 63 68 61 | 6e 67 65 73 20 66 72 6f |e no cha|nges fro|
|00000140| 6d 20 74 68 65 20 4d 2e | 49 2e 54 20 6f 72 69 67 |m the M.|I.T orig|
|00000150| 69 6e 61 6c 0d 09 6f 74 | 68 65 72 20 74 68 61 6e |inal..ot|her than|
|00000160| 20 74 68 69 73 20 6e 6f | 74 69 63 65 3b 20 62 75 | this no|tice; bu|
|00000170| 74 20 69 74 20 68 61 73 | 20 62 65 65 6e 20 74 65 |t it has| been te|
|00000180| 73 74 65 64 20 61 73 20 | 70 61 72 74 20 6f 66 20 |sted as |part of |
|00000190| 0d 09 43 6f 72 6e 65 6c | 6c 27 73 20 41 7a 74 65 |..Cornel|l's Azte|
|000001a0| 63 2d 43 20 70 6f 72 74 | 2e 20 20 53 65 65 20 6e |c-C port|. See n|
|000001b0| 6f 74 69 63 65 2e 68 0d | 0d 2a 2f 0d 0d 2f 2a 20 |otice.h.|.*/../* |
|000001c0| 74 69 6d 65 72 2e 68 20 | 2a 2f 0d 0d 23 69 66 6e |timer.h |*/..#ifn|
|000001d0| 64 65 66 20 5f 54 49 4d | 45 52 44 45 46 0d 23 64 |def _TIM|ERDEF.#d|
|000001e0| 65 66 69 6e 65 20 5f 54 | 49 4d 45 52 44 45 46 0d |efine _T|IMERDEF.|
|000001f0| 0d 23 69 6e 63 6c 75 64 | 65 20 3c 71 2e 68 3e 0d |.#includ|e <q.h>.|
|00000200| 0d 2f 2a 20 0d 20 20 20 | 54 68 69 73 20 66 69 6c |./* . |This fil|
|00000210| 65 20 63 6f 6e 74 61 69 | 6e 73 20 74 68 65 20 64 |e contai|ns the d|
|00000220| 65 63 6c 61 72 61 74 69 | 6f 6e 73 20 66 6f 72 20 |eclarati|ons for |
|00000230| 74 68 65 20 74 69 6d 65 | 72 20 6d 61 6e 61 67 65 |the time|r manage|
|00000240| 6d 65 6e 74 20 70 61 63 | 6b 61 67 65 2e 0d 2a 2f |ment pac|kage..*/|
|00000250| 0d 0d 23 64 65 66 69 6e | 65 09 54 50 53 09 20 36 |..#defin|e.TPS. 6|
|00000260| 30 09 09 09 09 09 2f 2a | 20 20 43 6c 6f 63 6b 20 |0...../*| Clock |
|00000270| 20 74 69 63 6b 73 20 70 | 65 72 20 73 65 63 6f 6e | ticks p|er secon|
|00000280| 64 2e 20 20 2a 2f 0d 0d | 74 79 70 65 64 65 66 09 |d. */..|typedef.|
|00000290| 75 6e 73 69 67 6e 65 64 | 20 6e 6f 6e 63 65 3b 09 |unsigned| nonce;.|
|000002a0| 09 09 2f 2a 20 61 20 74 | 69 6d 65 6f 75 74 20 6e |../* a t|imeout n|
|000002b0| 6f 6e 63 65 20 2a 2f 0d | 0d 74 79 70 65 64 65 66 |once */.|.typedef|
|000002c0| 09 73 74 72 75 63 74 09 | 74 69 6d 65 72 09 09 09 |.struct.|timer...|
|000002d0| 2f 2a 20 61 20 74 69 6d | 65 72 20 2a 2f 0d 7b 0d |/* a tim|er */.{.|
|000002e0| 09 73 74 72 75 63 74 20 | 71 5f 65 6c 74 20 74 6d |.struct |q_elt tm|
|000002f0| 5f 65 6c 74 3b 09 2f 2a | 20 6e 65 78 74 20 65 6c |_elt;./*| next el|
|00000300| 65 6d 65 6e 74 20 69 6e | 20 6c 77 61 2d 71 75 65 |ement in| lwa-que|
|00000310| 75 65 20 2a 2f 0d 09 75 | 6e 73 69 67 6e 65 64 20 |ue */..u|nsigned |
|00000320| 6c 6f 6e 67 20 74 6d 5f | 74 69 6d 65 3b 09 2f 2a |long tm_|time;./*|
|00000330| 20 74 69 6d 65 20 74 68 | 65 20 74 69 6d 65 72 20 | time th|e timer |
|00000340| 65 78 70 69 72 65 73 20 | 2a 2f 0d 09 6e 6f 6e 63 |expires |*/..nonc|
|00000350| 65 20 74 6d 5f 6e 6f 6e | 63 65 3b 09 09 09 2f 2a |e tm_non|ce;.../*|
|00000360| 20 6e 6f 6e 63 65 20 66 | 6f 72 20 74 68 69 73 20 | nonce f|or this |
|00000370| 74 69 6d 65 72 20 2a 2f | 0d 09 69 6e 74 09 28 2a |timer */|..int.(*|
|00000380| 74 6d 5f 73 75 62 72 29 | 20 28 29 3b 09 09 2f 2a |tm_subr)| ();../*|
|00000390| 20 73 75 62 72 6f 75 74 | 69 6e 65 20 74 6f 20 63 | subrout|ine to c|
|000003a0| 61 6c 6c 20 6f 6e 20 74 | 69 6d 65 6f 75 74 20 2a |all on t|imeout *|
|000003b0| 2f 0d 09 63 68 61 72 20 | 2a 74 6d 5f 61 72 67 3b |/..char |*tm_arg;|
|000003c0| 09 09 09 2f 2a 20 61 72 | 67 20 74 6f 20 70 61 73 |.../* ar|g to pas|
|000003d0| 73 20 74 6f 20 73 75 62 | 72 20 2a 2f 0d 7d 20 74 |s to sub|r */.} t|
|000003e0| 69 6d 65 72 3b 0d 0d 74 | 79 70 65 64 65 66 09 73 |imer;..t|ypedef.s|
|000003f0| 74 72 75 63 74 09 74 69 | 6d 65 5f 71 09 09 2f 2a |truct.ti|me_q../*|
|00000400| 20 74 68 65 20 6c 77 61 | 2d 71 75 65 75 65 20 6f | the lwa|-queue o|
|00000410| 66 20 61 63 74 69 76 65 | 20 74 69 6d 65 72 73 20 |f active| timers |
|00000420| 2a 2f 0d 7b 0d 09 74 69 | 6d 65 72 09 2a 74 6d 71 |*/.{..ti|mer.*tmq|
|00000430| 5f 68 65 61 64 3b 09 09 | 2f 2a 20 68 65 61 64 20 |_head;..|/* head |
|00000440| 6f 66 20 74 68 65 20 74 | 69 6d 65 72 20 6c 77 61 |of the t|imer lwa|
|00000450| 2d 71 75 65 75 65 20 2a | 2f 0d 09 74 69 6d 65 72 |-queue *|/..timer|
|00000460| 09 2a 74 6d 71 5f 74 61 | 69 6c 3b 09 09 2f 2a 20 |.*tmq_ta|il;../* |
|00000470| 74 61 69 6c 20 6f 66 20 | 74 68 65 20 74 69 6d 65 |tail of |the time|
|00000480| 72 20 6c 77 61 2d 71 75 | 65 75 65 20 2a 2f 0d 09 |r lwa-qu|eue */..|
|00000490| 69 6e 74 09 74 6d 71 5f | 6c 65 6e 3b 09 09 09 2f |int.tmq_|len;.../|
|000004a0| 2a 20 6e 75 6d 62 65 72 | 20 6f 66 20 65 6c 65 6d |* number| of elem|
|000004b0| 65 6e 74 73 20 69 6e 20 | 6c 77 61 2d 71 75 65 75 |ents in |lwa-queu|
|000004c0| 65 20 2a 2f 0d 09 75 6e | 73 69 67 6e 65 64 20 74 |e */..un|signed t|
|000004d0| 6d 71 5f 6d 61 78 3b 0d | 09 75 6e 73 69 67 6e 65 |mq_max;.|.unsigne|
|000004e0| 64 20 74 6d 71 5f 6d 69 | 6e 3b 0d 7d 20 74 69 6d |d tmq_mi|n;.} tim|
|000004f0| 65 5f 71 3b 0d 0d 0d 74 | 69 6d 65 72 20 2a 74 6d |e_q;...t|imer *tm|
|00000500| 5f 61 6c 6c 6f 63 28 29 | 3b 0d 0d 65 78 74 65 72 |_alloc()|;..exter|
|00000510| 6e 20 75 6e 73 69 67 6e | 65 64 20 54 49 4d 45 52 |n unsign|ed TIMER|
|00000520| 44 45 42 55 47 3b 0d 0d | 65 78 74 65 72 6e 20 63 |DEBUG;..|extern c|
|00000530| 68 61 72 20 74 69 6d 65 | 72 74 72 69 70 70 65 64 |har time|rtripped|
|00000540| 3b 09 2f 2a 20 74 69 6d | 65 72 20 6e 65 65 64 73 |;./* tim|er needs|
|00000550| 20 61 74 74 65 6e 74 69 | 6f 6e 20 75 6e 64 65 72 | attenti|on under|
|00000560| 20 4d 61 63 54 43 50 20 | 2a 2f 0d 0d 23 65 6e 64 | MacTCP |*/..#end|
|00000570| 69 66 0d 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |if......|........|
|00000580| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000590| 6e 65 64 20 74 6d 71 5f | 6d 61 78 3b 0d 09 75 6e |ned tmq_|max;..un|
|000005a0| 73 69 67 6e 65 64 20 74 | 6d 71 5f 6d 69 6e 3b 0d |signed t|mq_min;.|
|000005b0| 07 74 69 6d 65 72 2e 68 | 02 00 00 00 50 61 72 74 |.timer.h|....Part|
|000005c0| 53 49 54 78 00 00 00 00 | 00 00 00 00 00 01 8c 15 |SITx....|........|
|000005d0| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 a9 8d 3a 87 00 00 | 00 00 00 00 01 7e 6c 6c |....:...|.....~ll|
|00000600| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00000610| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00000620| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00000630| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00000640| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00000650| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00000660| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00000670| 6c 6c 6c 6c 6c 6c 6c 6c | 6c 6c 6c 6c 6c 6c 6c 6c |llllllll|llllllll|
|00000680| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 02 01 f3 |...H..Mo|naco....|
|00000690| 7f ff 7f f5 80 0a 7f f5 | 7f ff 7f ff 00 00 00 5c |........|.......\|
|000006a0| 00 00 01 00 00 00 00 06 | 00 04 00 27 00 00 01 e1 |........|...'....|
|000006b0| 02 00 00 27 00 00 01 e1 | 02 00 a1 ec c1 cd 00 00 |...'....|........|
|000006c0| 01 71 00 00 01 80 00 00 | 02 cb 01 00 00 00 01 00 |.q......|........|
|000006d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 1c 80 a0 |...L...L|...2....|
|000006e0| 0a a8 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000006f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 1d b7 f0 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+